
#include <ros/ros.h>
#include "addition_server/addTwoInts.h"

bool personCallback(addition_server::addTwoInts::Request &req, addition_server::addTwoInts::Response &res) 
{
   res.sum = req.num1 + req.num2;
   return true;
}

int main(int argc, char** argv) 
{
   ros::init(argc, argv, "addition_server");

   ros::NodeHandle n;
   ros::ServiceServer person_service = n.advertiseService("/addTwoInts", personCallback);
   ros::spin();

   return 0;
}
